package com.clayecloud.common.client.services;

import com.clayecloud.common.client.entity.ClientUserBindHouse;
import com.clayecloud.common.entity.HouseUser;
import com.clayecloud.common.utils.MessageUtil;

import java.util.List;

/**
 * @author  ClayeLink
 * @date  2021/12/31 14:51
 */
public interface HouseUserService{


    MessageUtil deleteByPrimaryKey(Integer houseId,Integer userId);

    int insert(HouseUser record);

    int insertSelective(HouseUser record);

    HouseUser selectByPrimaryKey(Integer houseId,Integer userId);

    int updateByPrimaryKeySelective(HouseUser record);

    int updateByPrimaryKey(HouseUser record);

    List<HouseUser> selectByUserID(Integer userId);

    List<HouseUser> selectByHouseID(Integer houseId);

    MessageUtil checkUserBindHouse(Integer userID);

    MessageUtil getUserBindAllHouse(Integer userID);

    MessageUtil userBindHouse(ClientUserBindHouse clientUserBindHouse);
}
